package com.baiwei.vpnapi.service;

import com.baiwei.vpnapi.entity.reqentity.PaymentInput;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestParam;
import javax.servlet.http.HttpServletRequest;


/**
 * @program: vpnapi
 * @description: 支付相关服务
 * @author: Mr. Stone
 * @create: 2020-03-06 16:48
 **/
public interface PayService {
    // 安卓提交订单
    public String commitOrder(PaymentInput input, Model model);
    // mPay提交订单
    //public String commitMpayOrder(PaymentInput input, Model model);
    // mPay支付成功回调
    //public String mpaySuccessCharage();
    // 支付成功回调
    public String successCharge();
    // 苹果支付校验
    public String iosPay(String transactionId, String payload);
    // web提交支付
    public String commitOrderForWeb(String payMethod, String packageId, String token,Model model);
    // vip 购买
    public String vipBuy(String packageId, String userId);

}
